<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>基础js</title>
</head>
<body>
    
</body>
<script>
    var age =18
    console.log(age);
    age =81
    console.log(age);
    var a1 = '青苹果'
    var a2 = '红苹果'
    console.log(a1);
    console.log(a2);
    console.log('------*************----------');
    var temp
    temp = a1
    a1=a2
    a2 = temp
    console.log(a1);
    console.log(a2);
</script>
</html>